regexp.Regexp.prefix (field)
13 uses
regexp (current package)
backtrack.go#L340: if len(re.prefix) > 0 {
exec.go#L207: if len(m.re.prefix) > 0 && r1 != m.re.prefixRune && i.canCheckPrefix() {
exec.go#L433: len(re.prefix) > 0 && i.canCheckPrefix() {
exec.go#L438: pos += len(re.prefix)
regexp.go#L93: prefix string // required prefix in unanchored matches
regexp.go#L202: regexp.prefix, regexp.prefixComplete = prog.Prefix()
regexp.go#L205: regexp.prefix, regexp.prefixComplete, regexp.prefixEnd = onePassPrefix(prog)
regexp.go#L207: if regexp.prefix != "" {
regexp.go#L210: regexp.prefixBytes = []byte(regexp.prefix)
regexp.go#L211: regexp.prefixRune, _ = utf8.DecodeRuneInString(regexp.prefix)
regexp.go#L407: return strings.HasPrefix(i.str, re.prefix)
regexp.go#L411: return strings.Index(i.str[pos:], re.prefix)
regexp.go#L521: return re.prefix, re.prefixComplete
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |